Use a delayed bug for this layout ICE#149433
Conversation
Fixes 144501
|
rustbot has assigned @jdonszelmann. Use |
| } | ||
|
|
||
| /// Ensures that an error is printed. See `Level::DelayedBug`. | ||
| /// Ensures that an error is printed. See [`Level::DelayedBug`]. |
There was a problem hiding this comment.
How to tell I didn't really know that I was doing here so ended up reading docs 🙂
|
@bors r+ rollup |
Rollup of 6 pull requests Successful merges: - #149393 (expand valid edition range for use-path-segment-kw.rs) - #149427 (Make the capitalization explicit on keyword misspell error) - #149433 (Use a delayed bug for this layout ICE) - #149473 (Tidying up UI tests [7/N]) - #149505 (Update the comment in the add_typo_suggestion function) - #149513 (`rust-analyzer` subtree update) r? `@ghost` `@rustbot` modify labels: rollup
|
Not super happy about this, IMO it is a hack that works around the issue that buggy types get passed to deep into rustc. :/ We are being way too aggressive with continuing compilation of invalid programs, and that makes it hard to ensure that the inner parts of the compiler have reliable invariants to build on. You may have fixed this ICE, but now e.g. the interpreter and other parts of the compiler are exposed to invalid layouts that can easily cause ICEs down the line. (Also see my earlier comment.) |
Rollup of 6 pull requests Successful merges: - rust-lang/rust#149393 (expand valid edition range for use-path-segment-kw.rs) - rust-lang/rust#149427 (Make the capitalization explicit on keyword misspell error) - rust-lang/rust#149433 (Use a delayed bug for this layout ICE) - rust-lang/rust#149473 (Tidying up UI tests [7/N]) - rust-lang/rust#149505 (Update the comment in the add_typo_suggestion function) - rust-lang/rust#149513 (`rust-analyzer` subtree update) r? `@ghost` `@rustbot` modify labels: rollup
Fixes #144501
cc @matthiaskrgr